package com.situ.mall.jvm.heap;

import com.situ.mall.collection.Student;

import java.util.ArrayList;
import java.util.List;

public class HeapDemo1 {

    public static void main(String[] args) {
        List<Student> list = new ArrayList<>();
        System.out.println("HeapDemo1.main start.....");
        for (int i = 0; i < 100000; i++) {
            Student student = new Student();
            list.add(student);
            try {
                Thread.sleep(10);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
        System.out.println("HeapDemo1.main end.....");
    }
}
